﻿@model Ducu.SRV.ViewModel.Profile.EditModel

    <p>
        大家好，我是<span class="lead" style="margin: 5px;">@Model.DisplayName</span>
        @if (Model.Gender.HasValue)
        {
            if (Model.Gender.Value)
            {
                <text>哥</text>
            }
            else
            {
                <text>妹纸</text>
            }
        }
        <span>。</span>
    </p>
    <hr />
    @if (!string.IsNullOrEmpty(Model.SelfIntroduction))
    {
        <p>@Model.SelfIntroduction</p>
    }
    @if (!string.IsNullOrEmpty(Model.QQ + Model.WeChat + Model.Phone + Model.WeiBo + Model.OtherContact))
    {
        <p>如果我偷懒没交作业，嘿嘿，直接联系我吧：</p>
        <ul>
            @if (!string.IsNullOrEmpty(Model.QQ))
            {
                <li><label>QQ：</label>@Model.QQ</li>
            }
            @if (!string.IsNullOrEmpty(Model.WeChat))
            {
                <li><label>微信：</label>@Model.WeChat</li>
            }
            @if (!string.IsNullOrEmpty(Model.Phone))
            {
                <li><label>电话：</label>@Model.Phone</li>
            }
            @if (!string.IsNullOrEmpty(Model.WeiBo))
            {
                <li><label>微博：</label>@Model.WeiBo</li>
            }
            @if (!string.IsNullOrEmpty(Model.OtherContact))
            {
                <li><label>其他：</label>@Model.OtherContact</li>
            }
        </ul>
    }
@if ((bool)ViewBag.CanEdit)
{
    <a href="/Profile/Edit" class="btn btn-default pull-right">修改</a>
    @Html.Partial("_ClearFloat")
}